package com.sea.supply.service;

import com.sea.supply.entity.ProduceDetail;
import com.sea.supply.entity.ProducePayment;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface ProducePaymentService {

    /**
     * 新增
     * @param producePayment
     * @return
     */
    int save(ProducePayment producePayment);
    /**
     * 查找明细
     * @param produceId
     * @return
     */
    List<ProducePayment> findByProduceId(Integer produceId);
    /**
     * 条件查询
     * @param producePayment
     * @return
     */
    List<ProducePayment> findByCnd(ProducePayment producePayment);
    /**
     * 更新
     * @param producePayment
     * @return
     */
    int usave(ProducePayment producePayment);
    /**
     * 查询指定
     * @param id
     * @return
     */
    ProducePayment findById(Integer id);

    /**
     * 批量导入付款信息
     * @param inputStream
     * @param fileName
     * @throws Exception
     */
    void importPayment(InputStream inputStream, String fileName) throws Exception;

    void pay(Integer[]payIds,String producePayTime,String produceFile);
    /**
     * 删除指定
     * @param id
     * @return
     */
    Integer delete(Integer id);
    /**
     * 更新发票状态
     * @param createPlanNo
     * @return
     */
    Integer updateBillStatus(String createPlanNo);

    ProducePayment findByProducePayment(ProducePayment producePayment);
}
